<template>
  <div>
    <n-input v-model:value="datas" type="textarea" placeholder="" :autosize="false"
             style="height: 400px"/>
  </div>
</template>


<script setup lang="ts">
import { ref, onMounted, computed } from 'vue'
import DepartureVerificationCodeUtil from '../../../util/business/DepartureVerificationCodeUtil'

const dataList = ref<string[]>([])


const datas = computed(() => {
  if (dataList.value.length > 0) {
    return dataList.value.join('\n')
  } else {
    return ''
  }
})

onMounted(() => {
  for (var index = 100; index < 10000; index++) {
    if (DepartureVerificationCodeUtil.checkCodeV2(`${index}`)) {
      dataList.value.push(`${index}`)
    }
  }
})

</script>


<style scoped>

</style>
